package study.nosql.redis.support.client;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.core.RedisTemplate;

@Slf4j
@Configuration
public class RedisClientConfig {

    @Bean
    public RedisV1Client redisClient(RedisTemplate redisTemplate) {
        return new RedisV1Client(redisTemplate);
    }

    @Bean
    public RedisV2Client redisClientV2(RedisTemplate redisTemplate) {
        return new RedisV2Client(redisTemplate);
    }
}
